function t(t, e, i) {
    return e in t ? Object.defineProperty(t, e, {
        value: i,
        enumerable: !0,
        configurable: !0,
        writable: !0
    }) : t[e] = i, t;
}

require("../../80DACA45CDB955CFE6BCA24283C89F20.js");

var e = getApp();

Page({
    data: {
        swiperList: [],
        indexList: [],
        currentSelectTripType: "pinche",
        text: "制作同款",
        bigtext: "元宵节快乐",
        item1_color: "#4169E1",
        item1_border: "2px #4169E1 solid",
        item2_color: "",
        item2_border: "",
        current_index: 0,
        zhiztk: "制作同款",
        swiperTest: [],
        test2_List: [],
        test3_List: [],
        wxkf: ""
    },
    item1_bindtap: function(t) {
        e.globalData.linkyulanback = t.currentTarget.dataset.src, e.globalData.linkfontcolor2 = t.currentTarget.dataset.color[t.currentTarget.dataset.index].src, 
        wx.navigateTo({
            url: "/pages2/zy_yulan/index"
        });
    },
    change: function(t) {
        1 == t.detail.current ? this.setData({
            item1_color: "",
            item1_border: "",
            item2_color: "#4169E1",
            item2_border: "2px #4169E1 solid"
        }) : this.setData({
            item2_color: "",
            item2_border: "",
            item1_color: "#4169E1",
            item1_border: "2px #4169E1 solid"
        });
    },
    dingzhi_tap: function(t) {
        wx.showModal({
            title: "高级定制服务",
            content: '是否复制客服微信号\n\n添加记得备注"定制"哦',
            confirmText: "复制",
            success: function(t) {
                t.confirm ? wx.setClipboardData({
                    data: String(e.globalData.linkweixin),
                    success: function(t) {
                        wx.getClipboardData({
                            success: function(t) {
                                console.log(t.data);
                            }
                        });
                    }
                }) : console.log("取消");
            }
        });
    },
    onLoad: function(i) {
        var a = this;
        wx.request({
            url: "https://224diy.com/admin/php/call.php?id=1",
            success: function(t) {
                a.setData({
                    swiperList: t.data
                });
            }
        }), wx.request({
            url: "https://224diy.com/admin/php/callwe.php",
            success: function(t) {
                e.globalData.linkweixin = t.data;
            }
        }), wx.request({
            url: "https://224diy.com/admin/php/call.php?id=2",
            success: function(e) {
                for (var i = 0; i < e.data.length; i++) {
                    var s, n = "test2_List[" + i + "].src", c = "test3_List[" + i + "].src";
                    a.setData((s = {}, t(s, n, e.data[i].src.slice(2)), t(s, c, e.data[i].src.slice(0, 1)), 
                    s));
                }
            }
        }), wx.request({
            url: "https://224diy.com/admin/php/call.php?id=3",
            success: function(t) {
                "0" != t.data[1].txt.slice(0, 1) && wx.showModal({
                    title: t.data[0].txt,
                    content: t.data[1].txt.slice(2),
                    showCancel: !1
                });
            }
        });
    },
    selectedPinche: function(t) {
        this.setData({
            current_index: t.currentTarget.dataset.id
        });
    },
    selectedBaoche: function(t) {
        this.setData({
            current_index: t.currentTarget.dataset.id
        });
    },
    onShareAppMessage: function(t) {
        return {
            title: "这里可以免费制作绚丽的信封哦",
            path: "/pages2/index/index",
            imageUrl: "http://inews.gtimg.com/newsapp_ls/0/13427687118/0",
            success: function(t) {
                wx.showToast({
                    title: "分享成功",
                    icon: "success",
                    duration: 2e3
                });
            },
            fail: function(t) {}
        };
    }
});